package com.ngkj.zmfptback.business.service.write.impl;

import com.ngkj.zmfptback.business.bean.Image;
import com.ngkj.zmfptback.business.mapper.write.ImageWriteMapper;
import com.ngkj.zmfptback.business.service.write.ImageWriteService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author ChenHN
 * @since 2021/12/30 creation
 **/
@Service
public class ImageWriteServiceImpl implements ImageWriteService {

    @Resource
    private ImageWriteMapper imageWriteMapper;

    @Override
    public void addImage(Image image) {
        imageWriteMapper.addImage(image);
    }

    @Override
    public void deleteImage(Long id) {
        imageWriteMapper.deleteImage(id);
    }

    @Override
    public void deleteImageByTypeId(Long xqlsh, String type) {
        imageWriteMapper.deleteImageByTypeId(xqlsh, type);
    }
}
